#include <cstdio>
typedef struct tag
{
    int num;
} nod_t;
int change(nod_t* nod)
{
    nod_t ne = {12};
    *nod = ne;
}
int main()
{
    nod_t nod = {6};
    printf("%d\n", nod.num);
    change(&nod);
    printf("%d\n", nod.num);
}